<%@ Page PathInChannel="ajax/member/index{Ext}" RunAt="Execute" %>
<ali:Get ID="Balance" Mark="User" Object="User.Money" Operation="GetBalance(new Guid(User['ID']))" />
<ali:Get ID="Today" Mark="User" Object="User.Money" Operation="GetIncome(new Guid(User['ID']), 1)" />
<ali:Get ID="Month" Mark="User" Object="User.Money" Operation="GetIncome(new Guid(User['ID']), 30)" />
{
	"balance":<%=Balance%>
	,"today":<%=Today%>
	,"month":<%=Month%>
	<%If Member[Count] > 0%>
		,"isMember":true
	<%Else%>
		,"isMember":false
	<%EndIf%>
	<ali:List ID="Member" Object="Member" Page="1" PageSize="1" Condition="IsDeleted=false and (ExpiredTime IS NULL or ExpiredTime>DateTime.Now) and UserID=User['ID']">
		<ali:Record>
			,"name":"<%=UserNickname%>"
			,"head":"<%=UserHead%>"
			,"no":"<%=No%>"
			<ali:List Object="MemberLevel" Page="1" PageSize="1" Condition="ID=LevelID">
				<ali:Record>
					,"levelName":"<%=Name%>"
				</ali:Record>
			</ali:List>
		</ali:Record>
	</ali:List>
}
